﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Hartley.BusinessLogic;
using Hartley.DTOs;
using Hartley.Entities;


namespace Hartley.ApplicationLogic
{
  public  class FundAL
    {
        HcFacade hcFacade = new HcFacade();

        public string saveFund(FundDTO fundDTO)
        {
            try
            {

                return hcFacade.saveFund(fundDTO);
            }
            catch
            {
                throw;
            }
        }


        public string SaveScholarShipData(ScholarshipDataDTO scholarshipDataDTO)
        {
            try
            {

                return hcFacade.SaveScholarShipData(scholarshipDataDTO);
            }
            catch
            {
                throw;
            }
        }

        public string SaveScholarShip(ScholarshipDTO scholarshipDTO)
        {
            try
            {

                return hcFacade.SaveScholarShip(scholarshipDTO);
            }
            catch
            {
                throw;
            }
        }

        public List<ScholarshipDTO> GetAllScholarShip()
        {
            try
            {

                return hcFacade.GetAllScholarShip();
            }
            catch
            {
                throw;
            }
        }

        public List<ScholarshipDataDTO> GetAllScholarShipData()
        {
            try
            {

                return hcFacade.GetAllScholarShipData();
            }
            catch
            {
                throw;
            }
        }

        public List<ScholarshipDTO> GetScholarShipById(Guid scholarshipId)
        {
            try
            {

                return hcFacade.GetScholarShipById(scholarshipId);
            }
            catch
            {
                throw;
            }
        }

        public List<ScholarshipDataDTO> GetAllScholarShipDataByScholarShipId(Guid scholarshipId)
        {
            try
            {

                return hcFacade.GetAllScholarShipDataByScholarShipId(scholarshipId);
            }
            catch
            {
                throw;
            }
        }

        public List<ScholarshipDataDTO> GetAllScholarShipDataOfStudent(Guid studentId)
        {
            try
            {

                return hcFacade.GetAllScholarShipDataOfStudent(studentId);
            }
            catch
            {
                throw;
            }
        }
        public List<FundDTO> GetFundById(Guid fundId)
        {
            return hcFacade.GetFundbyId(fundId);

        }


        public List<FundDTO> GetAllFund()
        {
            return hcFacade.GetAllFund();

        }




        public void deleteFundById(Guid fundId)
        {
            hcFacade.deleteFundById(fundId);
        }
    }
}
